package chapter.fourth.item20;

public class Rectangle extends Shape {

	private final double length;
	private final double width;
	
	public Rectangle(double length, double width) {
		super();
		this.length = length;
		this.width = width;
	}

	@Override
	double area() {
		return length*width;
	}

	public double getLength() {
		return length;
	}

	public double getWidth() {
		return width;
	}

}
